﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<KabiManagementWeb.Models.Penalty_Detail>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Danh sách nhân viên bị phạt tiền</h2>
      <table><tr><td><% using (Html.BeginForm())
       {%>
    Xem :
    <%=Html.DropDownList("time", (SelectList)ViewData["time"], new { onchange = "this.form.submit()" })%>
    <%} %></td>
    </tr></table>
     <table style="width: 100%;" cellpadding="0" cellspacing="0" class="tbList">
        <tr>
           
            <th>
                Nhân viên
            </th>
             <th>
                Ngày vi phạm
            </th>
            <th>
                Phạt vào tháng
            </th>
            <th>
               Hình thức
            </th>
            <th>
              Số tiền
            </th>
            <th>
                Mô tả
            </th>
           
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
           
            <td>
                <%= Html.Encode(item.Pay_Salary.Employee.FullName) %>
            </td>
              <td>
                <%= Html.Encode(String.Format("{0:g}", item.PenaltyDate)) %>
            </td>
            <td>
                <%= Html.Encode(item.Pay_Salary.PayMonth + "-" + item.Pay_Salary.PayYear)%>
            </td>
            <td>
                <%= Html.Encode(item.Penalty.Pe_Name) %>
            </td>
            <td>
                <%= Html.Encode(item.Penalty.ExceptSalary) %>
            </td>
            <td>
                <%= Html.Encode(item.Description) %>
            </td>
          
           
        </tr>
    
    <% } %>

    </table>

   

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
</asp:Content>

